#!/usr/bin/env node


const Koa = require('koa');

const app = new Koa(),
      router = require('koa-router'),
      Router = require(''),
      log = console.log;
router.get('./api/tasks/',async(ctx,next)=>{
  log('tijiao');
  ctx.body = 'tianjiachenggong';
})
router.put('./api/tasks/',async(ctx,next)=>{
  log('tijiao');
  ctx.body = 'tianjiachenggong';
})
router.delete('./api/tasks/',async(ctx,next)=>{
  log('tijiao');
  ctx.body = 'tianjiachenggong';
})
router.post('./api/tasks/',async(ctx,next)=>{
  log('tijiao');
  ctx.body = 'tianjiachenggong';
})

app.use(Router.routes());

app.listen(8080);

